package com.linghang.wusthelper.dao.primary;

import com.linghang.wusthelper.entity.primary.LibAnnouncement;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author origin
 * 图书馆公告dao
 */
@Repository
//主数据源的SqlSessionTemplate
@Qualifier("primarySqlSessionTemplate")
public interface LibAnnouncementDao {

    int insert(LibAnnouncement libannouncement);

    int existTitle(String title);

    List<LibAnnouncement> selectList();

    String getContent(int announcementId);

    Date find19();

    void deleteMore(Date date);
}
